﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B69 RID: 2921
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyBuyGoodsScRsp : IMessage<MonopolyBuyGoodsScRsp>, IMessage, IEquatable<MonopolyBuyGoodsScRsp>, IDeepCloneable<MonopolyBuyGoodsScRsp>, IBufferMessage
	{
		// Token: 0x170024E8 RID: 9448
		// (get) Token: 0x060082B5 RID: 33461 RVA: 0x0015CEED File Offset: 0x0015B0ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyBuyGoodsScRsp> Parser
		{
			get
			{
				return MonopolyBuyGoodsScRsp._parser;
			}
		}

		// Token: 0x170024E9 RID: 9449
		// (get) Token: 0x060082B6 RID: 33462 RVA: 0x0015CEF4 File Offset: 0x0015B0F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyBuyGoodsScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170024EA RID: 9450
		// (get) Token: 0x060082B7 RID: 33463 RVA: 0x0015CF06 File Offset: 0x0015B106
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyBuyGoodsScRsp.Descriptor;
			}
		}

		// Token: 0x060082B8 RID: 33464 RVA: 0x0015CF0D File Offset: 0x0015B10D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsScRsp()
		{
		}

		// Token: 0x060082B9 RID: 33465 RVA: 0x0015CF15 File Offset: 0x0015B115
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsScRsp(MonopolyBuyGoodsScRsp other) : this()
		{
			this.shopId_ = other.shopId_;
			this.goodsId_ = other.goodsId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060082BA RID: 33466 RVA: 0x0015CF52 File Offset: 0x0015B152
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsScRsp Clone()
		{
			return new MonopolyBuyGoodsScRsp(this);
		}

		// Token: 0x170024EB RID: 9451
		// (get) Token: 0x060082BB RID: 33467 RVA: 0x0015CF5A File Offset: 0x0015B15A
		// (set) Token: 0x060082BC RID: 33468 RVA: 0x0015CF62 File Offset: 0x0015B162
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x170024EC RID: 9452
		// (get) Token: 0x060082BD RID: 33469 RVA: 0x0015CF6B File Offset: 0x0015B16B
		// (set) Token: 0x060082BE RID: 33470 RVA: 0x0015CF73 File Offset: 0x0015B173
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsId
		{
			get
			{
				return this.goodsId_;
			}
			set
			{
				this.goodsId_ = value;
			}
		}

		// Token: 0x170024ED RID: 9453
		// (get) Token: 0x060082BF RID: 33471 RVA: 0x0015CF7C File Offset: 0x0015B17C
		// (set) Token: 0x060082C0 RID: 33472 RVA: 0x0015CF84 File Offset: 0x0015B184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060082C1 RID: 33473 RVA: 0x0015CF8D File Offset: 0x0015B18D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyBuyGoodsScRsp);
		}

		// Token: 0x060082C2 RID: 33474 RVA: 0x0015CF9C File Offset: 0x0015B19C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyBuyGoodsScRsp other)
		{
			return other != null && (other == this || (this.ShopId == other.ShopId && this.GoodsId == other.GoodsId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060082C3 RID: 33475 RVA: 0x0015CFF8 File Offset: 0x0015B1F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this.GoodsId != 0U)
			{
				num ^= this.GoodsId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060082C4 RID: 33476 RVA: 0x0015D069 File Offset: 0x0015B269
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060082C5 RID: 33477 RVA: 0x0015D071 File Offset: 0x0015B271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060082C6 RID: 33478 RVA: 0x0015D07C File Offset: 0x0015B27C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GoodsId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.GoodsId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ShopId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060082C7 RID: 33479 RVA: 0x0015D0F4 File Offset: 0x0015B2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this.GoodsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060082C8 RID: 33480 RVA: 0x0015D164 File Offset: 0x0015B364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyBuyGoodsScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			if (other.GoodsId != 0U)
			{
				this.GoodsId = other.GoodsId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060082C9 RID: 33481 RVA: 0x0015D1C8 File Offset: 0x0015B3C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060082CA RID: 33482 RVA: 0x0015D1D4 File Offset: 0x0015B3D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 64U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ShopId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.GoodsId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400321A RID: 12826
		private static readonly MessageParser<MonopolyBuyGoodsScRsp> _parser = new MessageParser<MonopolyBuyGoodsScRsp>(() => new MonopolyBuyGoodsScRsp());

		// Token: 0x0400321B RID: 12827
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400321C RID: 12828
		public const int ShopIdFieldNumber = 11;

		// Token: 0x0400321D RID: 12829
		private uint shopId_;

		// Token: 0x0400321E RID: 12830
		public const int GoodsIdFieldNumber = 2;

		// Token: 0x0400321F RID: 12831
		private uint goodsId_;

		// Token: 0x04003220 RID: 12832
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04003221 RID: 12833
		private uint retcode_;
	}
}
